package com.jinmei.web.action;

import com.jinmei.model.ToDoList;
import com.jinmei.service.ToDoListService;
import com.jinmei.utils.TaskActionUtils;

public class DeleteTaskAction extends BaseAction{

	private static final long serialVersionUID = 1L;
	
	private ToDoListService toDoListService;
	
	private String status;
	
	public String deletetask() throws Exception{
		ToDoList task = TaskActionUtils.convertRequestPar2Task(request);
		status = toDoListService.deleteTask(task.getId());
		return SUCCESS;
	}

	public ToDoListService getToDoListService() {
		return toDoListService;
	}

	public void setToDoListService(ToDoListService toDoListService) {
		this.toDoListService = toDoListService;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}
